import { createApp } from 'vue'
import App from './App.vue'
import router from './router' // 导入路由配置
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import antD from 'ant-design-vue'
import '@/assets/input.css'

const pinia = createPinia()

const app = createApp(App)
// 注册ElementPlus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router) // 注册路由
// 注册ElementUI
app.use(ElementPlus)
app.use(antD)
app.use(pinia)
app.mount('#app')
